#ifndef __E840_H__
#define __E840_H__

#include "sys.h"

#define E840_RX_BUF_SIZE              128
#define E840_TX_BUF_SIZE              64
                                         
#define E840_OK                       0
#define E840_ERROR                    1
#define E840_TIMEOUT                  2
#define E840_EINVAL                   3

void e840_init(uint32_t baudrate);
uint16_t e840_receive_data(char *recv_data);

#endif


